package com.sunwayhorizo.health.business.dto.patad.encounter;

import com.sunwayhorizo.health.hl7.rim.PatientEncounter;

import java.util.Date;


public class EncounterDTO 
{
  private int version             = 0;
  private boolean currentVersion  = false;
  private Date startDate          = null;
  private String complaint        = "";
  private String temperature      = "";
  private String height           = "";
  private String weight           = "";
  
  public EncounterDTO()
  {}

  //A convenient method to fill up the attribute by giving it the encounter object returned from
  //query. This method is not yet complete. Please edit according to your need.
  public void populateDTO(PatientEncounter encounter)
  {
    try{//Version
//      this.setVersion(encounter.getVersionNum());
//      this.setCurrentVersion(encounter.isCurrentVersion());
    }catch (NullPointerException npe){}
    
    try{//Encounter : Chief Complaint.. Insert code here..
      this.setComplaint("??");
    }catch (NullPointerException npe){}
    
    try{//Observation : Height.. Insert code here..
      this.setHeight("??");
    }catch (NullPointerException npe){} 

    try{//Observation : Weight.. Insert code here..
      this.setWeight("??");
    }catch (NullPointerException npe){} 

    try{//Observation : Temperature.. Insert code here..
      this.setTemperature("??");
    }catch (NullPointerException npe){} 
    
  }


  public void setComplaint(String complaint)
  {
    this.complaint = complaint;
  }


  public String getComplaint()
  {
    return complaint;
  }


  public void setTemperature(String temperature)
  {
    this.temperature = temperature;
  }


  public String getTemperature()
  {
    return temperature;
  }


  public void setHeight(String height)
  {
    this.height = height;
  }


  public String getHeight()
  {
    return height;
  }


  public void setWeight(String weight)
  {
    this.weight = weight;
  }


  public String getWeight()
  {
    return weight;
  }


  public void setVersion(int version)
  {
    this.version = version;
  }


  public int getVersion()
  {
    return version;
  }


  public void setCurrentVersion(boolean currentVersion)
  {
    this.currentVersion = currentVersion;
  }


  public boolean isCurrentVersion()
  {
    return currentVersion;
  }


  public void setStartDate(Date startDate)
  {
    this.startDate = startDate;
  }


  public Date getStartDate()
  {
    return startDate;
  }
}